package com.namecard.namecardapi.service;
import com.baomidou.mybatisplus.extension.service.IService;
import com.namecard.namecardapi.entity.SearchRecordInfo;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author zxb
 * @since 2023-07-07
 */
public interface SearchRecordInfoService extends IService<SearchRecordInfo> {
    /**
     * 保存搜索记录
     */
    void saveSearchRecord(String searchRecord,String userId);

    /**
     * 获取搜索记录
     */
    List<SearchRecordInfo> getSearchRecord(String userId);

    /**
     * 删除搜索记录
     */
    void deleteSearchRecord(Long searchRecordId);


    /**
     * 删除所有搜索记录
     * @param userId 用户id
     */
    void deleteAllSearchRecord(String userId);
}
